restart
9.3.4 View Configuration
Log on to the Nagios Web Monitor page http://192.168.10.11/nagios/view related information.As you can see, the monitoring of the related services on Nagios-server and Nagios-linux has been successful, and the services on the nagios-
Generic-serviceHOST_NAME RuanxiService_description Memory UsageCheck_command check_nt! Memuse!-w 80-c #内存使用到达80% is warn, reaching 90% critical}C + + for #监控 Windows host The amount of space usedDefine Service{Use Generic-serviceHOST_NAME RuanxiService_description c \ Drive SpaceCheck_command check_nt! Useddiskspace!-l C-w 80-c 90}#监控 the action state of the W3SVC settings for a Windows host------> This se
Powershell updates Nagios Windows Client
Beans found on a newly configured Nagios server today that the Windows Server's memory check still uses check_nt, and check_nt checks the sum of physical memory and virtual memory; I only need to check the physical memory, so I need t
# Groupaddnagios
# Usermod-Gnagiosnagios
# Vi/etc/passwd
Nagios: x: 500: 500:/home/nagios:/sbin/nologin
Changed:
Nagios: x: 500: 500:/home/nagios:/bin/bash
Create a user group named nagcmd to execute External commands from the Web interface. Add both nagios users and
# The Basic installation process will not be repeated here. The htpasswd-bc line of code is used to generate an angiosadmin user named nagiosadmin101 without human intervention, later, because/usr/local/nagios/etc/nagios is frequently modified. cfg configuration file, so you need to check its syntax, so the long command is used to generate an alias command named nagioscheck.
The automatic
Installing the Nagios ClientThe client only needs to install the following contentClass-accessor-0.31.tar.gzConfig-tiny-2.12.tar.gzMath-calc-units-1.07.tar.gzNagios-plugin-0.34.tar.gzParams-validate-0.91.tar.gzRegexp-common-2010010201.tar.gzCheck_iostatcheck_memory.plNrpe-2.12.tar.gzFirst step: Modify the Yum source codecd/etc/yum.repos.d/Wget-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/rep
following command.[Email protected]_server nrpe-2.15]#./configure--with-nrpe-user=nagios // You can run Nrpe with the Nagios user, if you do not have this user, you must first create [[email protected]_server nrpe-2.15 make all // compile all source code [Email protected]_server nrpe-2.15makeinstall-plugin // Install Check_nrpe plugin, default to install to/usr/local
/nrpe.cfg. Restart the NRPE service and check the log file/var/log/messages (Rhel/centos) Or/var/log/syslog (Debain/ubuntu). The log files should contain relevant information if there is an any configuration or permission errors. If There is a hits in the log, it's very likely that the requests was not reaching the remote server due to port Filte Ring at some point.
To sum up, this tutorial demonstrated how we can easily tune NRPE to monitor RAM usage of the remote servers. The process is
[Nsclient], the annotation for the ' port ' option needs to be removed, and its value is ' 12489 ', which is the default port of the Nsclient
4. After completion, start nsclient++
Under Cmd c:\nsclient++, perform nsclient++/start or go directly to the service to reboot
Under CMD, perform netstat-an and check that port 12489 is turned on
5. In the lower right corner you can see
Like the launch of a small butterfly mark, this Windows
1, remove the dpkg installed NrpeDpkg-l | grep NrpeDkpg-p Nagios-nrpe-server2, Ubuntu under nrpe3.2.1 installationDownload nrpe3.2.1 's Source bundle: https://jaist.dl.sourceforge.net/project/nagios/nrpe-3.x/nrpe-3.2.1.tar.gzThe Nagios plugin support is required to run Nrpe on the client, and I am downloading
1.NrpeinstallationCreate Nagios UserUseradd Nagios1.1installed by the monitored serverNagiosPluginsTar xzvfnagios-plugins-1.4.15.tar.gzCD nagios-plugins-1.4.15./configureMakeMake install1.2installed by the monitored serverNrpeprogramTar xzvf nrpe-2.1.2.tar.gzCD nrpe-2.1.2./configure--prefix=/usr/local/nagiosMake allMake Install-pluginMake Install-daemonMake Install-daemon-configCheck for plug-in installatio
NagiosThe Windows Server monitoring process is described as follows:
The biggest difference between NSClient and Nrpe is:
1. nrpe is installed on the monitored host and there are plug-ins. The final monitoring is performed by these plug-ins. When the monitoring host sends the monitoring request to nrpe, nrpe calls the plug-in to complete monitoring.
2. NSClient is different. Only NSClient is installed on the monitored machine, and no plug-in is availa
One, installation of Nagios client for Linux serverSteps:1, create the directory, upload files to the directoryMkdir/dataNagios-plugins-2.1.1.tar.gzNrpe-2.12.tar.gz2. Creating Nagios Groups and usersGroupadd NagiosMkdir/usr/local/nagiosUseradd nagios-d/usr/local/nagios-s/sbi
Recently, as the company's business needs to be ready to build a Nagios platform under the Linux platform to monitor the performance of some important servers, disk and related services, personal feeling is very interesting, because in the previous posting also mentioned the current server monitoring in the enterprise we will generally use the Microsoft platform under the Scom, Third party manufacturers to develop some of their own monitoring platform
/usr/local/nagios/etc/servers by the process configuration. One thing to note here is that the firewall on the 2008 version of Windows is the default to turn off the Ping echo protocol for ICMP If you use Nagios monitoring or ping to check the host's survival, So you also need to open the ICMP ping echo protocol in the inbound rules on the firewall on the
to name the host name)cd/usr/local/nagios/etc/servers/Vim Test.cfg# # HOST Definition#define host{use linux-server; Name of the host template to use; This host definition would inherit all variables is defined; In (or inherited by) the Linux-server host template definition. HOST_NAME Test #客户端主机名 alias test address client IP address}## HOST GROUP definition# define hostgroup{hostgroup_name test; Th
completes the configuration on Windows Server 2008. Next we set up the Nagios monitoring server.
3.Nagios Monitor Server settingsVi/usr/local/nagios/etc/nagios.cfgSearch Find:# Definitions for monitoring a Windows machine# cfg_file=/usr/local/
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.